import request from '@/router/axios';
export const getList = (current, size, params) => {
    return request({
        url: '/api/mes-qms/qms-iqc-dispose/page',
        method: 'get',
        params: {
            ...params,
            current,
            size,
        }
    })
}

export const getDetail = (id) => {
    return request({
        url: '/api/mes-qms/qms-iqc-dispose/detail-by-id',
        method: 'get',
        params: {
            id
        }
    })
}

export const add = (row) => {
    return request({
        url: '/api/mes-qms/qms-iqc-dispose/dispose',
        method: 'post',
        data: row
    });
};
